//
//  GJProgressHUD.h
//  TimeBoat
//
//  Created by yang on 2022/4/21.
//  Copyright © 2022 yang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MBProgressHUD/MBProgressHUD.h>
typedef NS_ENUM(NSInteger,GJProgressMode){
    GJProgressModeOnlyText,           //文字
    GJProgressModeLoading,            //加载菊花
};

NS_ASSUME_NONNULL_BEGIN
@interface GJProgressHUD : NSObject

@property (nonatomic,strong) MBProgressHUD *__nullable mb;

+(instancetype)shareinstance;

/// toast  msg 内容
+(void)mbShow:(NSString *__nullable)msg;

+(void)mbShow:(NSString *__nullable)msg inView:(UIView *__nullable)view mode:(GJProgressMode)myMode;

/// 加载
+(void)mbLoading;

///消失的方法
+(void)mbDismiss;

@end

NS_ASSUME_NONNULL_END
